package com.xiaoma.base.extend;

public class Test {

	public static void main(String[] args) throws Exception {
		AbstractHandler handler=HandlerFactory.getHandler(HandlerEnum.getHandlerEnum("text"));
		handler.handler();
		
		AbstractHandler handler1=HandlerFactory.getHandler(HandlerEnum.getHandlerEnum("image"));
		handler1.handler();
		
		HandlerFactory.getHandler(HandlerEnum.getHandlerEnum("text")).handler();
		
	}
}
